package cn.itcast.erp.entity.utils;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.springframework.stereotype.Component;

/**
 * AjaxResult
 * @author 崔凯铭，罗宇航
 * @date 2019/6/5
 */

@Component
public class AjaxResult {
    @JsonProperty("message")
    private String msg;
    private Integer total;
    private Object rows;


    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Object getRows() {
        return rows;
    }

    public void setRows(Object rows) {
        this.rows = rows;
    }

    @Override
    public String toString() {
        return "AjaxResult{" +
                "msg='" + msg + '\'' +
                ", total=" + total +
                ", rows=" + rows +
                '}';
    }
}
